#include "include/cam_control_sdk.hpp"
#include "include/cam_control_interface.hpp"
#include "include/cam_control_impl.hpp"

cam_control_interface * cam_control_sdk::cam_control_instance=nullptr;
cam_control_interface * cam_control_sdk::get_cam_control()
{
    if(cam_control_instance==nullptr)
    {
        cam_control_instance=new cam_control_impl();
    }
    return cam_control_instance;
}
cam_control_base *cam_control_sdk::get_cam_control(CAM_TYPE type)
{
     switch (type)
    {
        case HKVID:
            return new cam_control_impl();
            break;
        
        default:
            return nullptr;
            break;
    }    
}